<template>
  <div class="dashboard-container">
    <div class="dashboard-text"></div>
    <el-row>
      <el-col :span="12">
        <el-button size="mini" type="primary" @click="jump">打印测试</el-button>
      </el-col>
    </el-row>
  </div>
</template>
<script>
import { mapGetters } from "vuex";

export default {
  name: "Dashboard",
  computed: {
    ...mapGetters(["name"]),
  },
  created() {
    // 初始化执行
    // this.$store.dispatch('user/getUserInfo') // 调用这个action中的getUserInfo方法
  },
  methods: {
    jump() {
      window.location.href = 'http://localhost:81/print/'
      // this.$router.push('http://localhost:81/print/')
    }
  }
};
</script>

<style lang="scss" scoped>
.dashboard {
  &-container {
    margin: 30px;
  }
  &-text {
    font-size: 30px;
    line-height: 46px;
  }
}
</style>
